<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .da{
            display: inline-block;
        }
        .da input{
            display: none;
            user-select: none;
        }
        .da span{
            display: inline-block;
            width: 160px;
            height: 59px;
            border: 1px solid #DADADA;
            border-radius: 30px;
            background-color: #F8F8F8;
        }
        .da span::before{
            display: inline-block;
            content: "";
            width: 54px;
            height: 54px;
            border: 1px solid #DADADA;
            border-radius: 30px;
            margin-top: 2px;
            margin-left: 1px;
            background-color: #FCFCFC;
        }
        .da input:checked+span{
            background-color: #4CD860;
            border-color: #4CD860;
        }
        .da input:checked+span::before{
            display: inline-block;
            content: "";
            width: 54px;
            height: 54px;
            border:1px solid white;
            margin-left:102px;
            margin-top: 2px;
            background-color: white;
        }

    </style>
</head>
<body>
    <label class="da" ><input type="checkbox"><span></span></label>
</body>
</html>